package entidades;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

/**
 * @author Eli Moura
 *
 */
@Entity
@NamedQueries({
    @NamedQuery(name="findAtendenteById", query="SELECT a FROM Atendente a WHERE a.id = :id"),
    @NamedQuery(name="findAtendenteByNome", query="SELECT a FROM Atendente a WHERE a.nome = :nome"),
        @NamedQuery(name="findAtendentes", query="SELECT a FROM Atendente a ORDER BY a.id")
})
public class Atendente implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6113435833313288760L;

	private String nome, CPF, email, login, senha;

	private long id;
	
	@Id
    @GeneratedValue(strategy=GenerationType.AUTO)
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public String getCPF() {
		return CPF;
	}

	public void setCPF(String cPF) {
		CPF = cPF;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getSenha() {
		return senha;
	}

	public void setSenha(String senha) {
		this.senha = senha;
	}

	/**
     * Default constructor. 
     */
    public Atendente() {
        // TODO 
    }

}
